import CouponList from '@/views/CouponList.vue'
import FlowDetail from '@/views/flowDetail.vue'
import Login from '@/views/Login.vue'
import MyCouponList from '@/views/MyCouponList.vue'
import MyOrder from '@/views/MyOrder.vue'
import ProductConfirm from '@/views/ProductConfirm.vue'
import ProductDetail from '@/views/ProductDetail.vue'
import ProductList from '@/views/ProductList.vue'
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {path:"/" , redirect:"/productList"},
    {path:"/productList" ,component:ProductList},
    {path:"/productDetail/:id" ,component:ProductDetail},
    {path:"/couponList" ,component:CouponList},
    {path:"/myCouponList" ,component:MyCouponList},
    {path:"/productConfirm" ,component:ProductConfirm},
    {path:"/flowDetail/:id" ,component:FlowDetail},
    {path:"/login" ,component:Login},
    {path:"/myOrder" ,component:MyOrder},
  ],
})

export default router
